package day8;
/*


* */
public class Job {
    public static void main(String[] args) {
        compareTo();
    }
    //定义方法判断是否相同
    public static void compareTo(){
        JobPerson jobPerson = new JobPerson("37152001546921036","张三");
        JobPerson jobPerson1 = new JobPerson("37152001546921036","李四");
        if(jobPerson.idNumber ==jobPerson1.idNumber){
            System.out.println("相等");
        }else{
            System.out.println("不相等");
        }
    }
}
class JobPerson{
    //身份证号
    public String idNumber;
    //名称
    public String partName;
    //赋值
    public JobPerson(String idNumber,String partName){
        this.idNumber = idNumber;
        this.partName = partName;
    }

}


